package com.ys.service.Impl;

import com.ys.mapper.CategoryMapper;
import com.ys.pojo.Category;
import com.ys.service.CategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("categoryService ")
public class CategoryServiceImpl implements CategoryService {
    @Resource
    private CategoryMapper categoryMapper;
    @Override
    public List<Category> select() {
        return categoryMapper.select();
    }

    @Override
    public boolean addsinsert(Category category) {
        return categoryMapper.insert(category);
    }

    @Override
    public boolean updsupdate(Category category) {
        return categoryMapper.update(category);
    }
}
